// Copyright (c) Kurrent, Inc and/or licensed to Kurrent, Inc under one or more agreements.
// Kurrent, Inc licenses this file to you under the Kurrent License v1 (see LICENSE.md).

using NUnit.Framework;

namespace KurrentDB.Projections.Core.Tests.Services.Jint;

[TestFixture]
public class with_deleted_notification_handled : TestFixtureWithInterpretedProjection {
	protected override void Given() {
		_projection = @"fromAll().foreachStream().when({
                $deleted: function(){}
            })";
		_state = @"{}";
	}

	[Test]
	public void source_definition_is_correct() {
		Assert.AreEqual(true, _source.HandlesDeletedNotifications);
	}
}
